package service.impl;

import dao.impl.UserDaoImpl;
import entity.User;
import service.IUserSrevice;

public class UserServiceImpl implements IUserSrevice{
	UserDaoImpl udi = new UserDaoImpl();
	@Override
	public boolean save(User user) {
		return udi.save(user);
	}

	@Override
	public boolean delete(User user) {
		return udi.delete(user);
	}

	@Override
	public boolean update(User user) {
		return udi.update(user);
	}

	@Override
	public User selectById(int id) {
		return udi.selectById(id);
	}

	@Override
	public User[] selectAll() {
		return udi.selectAll();
	}

	@Override
	public boolean login(User user) {
		return udi.login(user);
	}

	@Override
	public boolean regsit(User user) {
		return udi.regsit(user);
	}

	@Override
	public boolean deposit(double money) {
		return udi.deposit(money);
	}

	@Override
	public boolean withdrawals(double money) {
		return udi.withdrawals(money);
	}

	@Override
	public boolean transfer(double money, int id) {
		return udi.transfer(money, id);
	}

	@Override
	public User selectInformation() {
		return udi.selectInformation();
	}

}
